package com.edu.course.service;

import com.edu.api.entity.common.ResponseDTO;
import com.edu.api.entity.course.Course;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 *
 */
public interface CourseService extends IService<Course> {

    /**
     * 增加销量
     * @param courseId
     * @return
     */
    ResponseDTO updateSales(String courseId);

    /**
     * 获取所有课程
     * @param request
     * @return
     */
    ResponseDTO getAllCourse(Map map,HttpServletRequest request);

    /**
     *
     * @param request
     * @return
     */
    ResponseDTO getMyCoursesById(HttpServletRequest request);

    /**
     * 获取课程详情
     * @param courseId
     * @return
     */
    ResponseDTO getCourseDetails(String courseId);

}
